package teach.aistar.model.entity;


import java.util.Date;

public class Chat {

  private Long id;
  private Integer chatType;
  private String chatPerson;
  private String chatText;
  private Date chatTime;

  public Chat() {

  }
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Integer getChatType() {
    return chatType;
  }

  public void setChatType(Integer chatType) {
    this.chatType = chatType;
  }

  public String getChatPerson() {
    return chatPerson;
  }

  public void setChatPerson(String chatPerson) {
    this.chatPerson = chatPerson;
  }

  public String getChatText() {
    return chatText;
  }

  public void setChatText(String chatText) {
    this.chatText = chatText == null?null:chatText.trim();
  }

  public Date getChatTime() {
    return chatTime;
  }

  public void setChatTime(Date chatTime) {
    this.chatTime = chatTime;
  }

  @Override
  public String toString() {
    final StringBuffer sb = new StringBuffer("Chat{");
    sb.append("id=").append(id);
    sb.append(", chatType=").append(chatType);
    sb.append(", chatPerson=").append(chatPerson);
    sb.append(", chatText='").append(chatText).append('\'');
    sb.append(", chatTime=").append(chatTime);
    sb.append('}');
    return sb.toString();
  }
}
